/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds.ui;

import java.util.Vector;
import javax.swing.table.DefaultTableModel;
import net.worlds.ObjectList;


public class PropsTableModel extends DefaultTableModel{
    public void setValueAtAuto(Object aValue, int row, int column)
    {
        Vector rowVector = (Vector)dataVector.elementAt(row);
        rowVector.setElementAt(aValue, column);
    }
    @Override
    public boolean isCellEditable(int row, int column)
    {
        return column == 1 && ObjectList.getPropDef(UI.getSelected().get(0).getClass().getSimpleName(), getValueAt(row, 0).toString()).guiEditable;
    }
}
